home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Delphi Programmer's Power Pack
/
Delphi Volume 1.iso
/
s_to_z
/
tiffimg
/
readme.txt
next >
Wrap
Text File
|
1996-09-15
|
7KB
|
143 lines
TIFFIMG is a DELPHI component which will display TIFF, PCX,
DCX, and BMP files. It provides facilities to rotate, invert, flip
and produce thumbnails of displayed images. When using DCX and
TIFF multipage images, it is possible to determine the number of images
beforehand in a file and show only selected images. Check out MULTI.TIF.
You may register on-line with CompuServe - Go SWREG and use registration
code 9829. Price is $45US plus shipping.
GIF file support is provided; however you must negotiate your own licensing
agreement with UNISYS to provide end-user GIF support. It is provided as a
development tool only.
This is Version 2.0, and there are a few new things. Foremost among these
is a crop/zoom feature, which allows selecting a specific portion of a large
image to view. Decompress and rotate are faster.
Also, the thumbnail feature has been separated from the main image
display component and can be used separately to pan through TImage pictures.
Check the source code in the example to be sure you're using the features of
the component in the right order - GPFs can result otherwise, although I've
tried to place most of the important code inside the component to insure
proper execution order. Also, You can now Expand 200 x 100 fax style TIFFs
and rescale the image proportionately up or down (usually down to conserve
space). The Component now returns an error code and does not put up a dialog box
by itself anymore. This allows you to choose the look of how you handle an error.
Also new in verison 2 is a magnify window, printing ability, and text Annotation.
Tiff Tags may be displayed if desired. it is also now possible to save only a
cropped part of an image to a file. See help and use property "SAVECROPPEDAREA"
The Demo uses a feature called "stretchHandle" to stretch and move the image.
Unzip the file HANDLES.PAS, note the author to whom we owe a bit of thanks,
and install HANDLES.PAS in your component palette.
The thumbnail feature allows creation of a pan window, within which a
rectangle can be dragged around and cause the main image to scroll.
Options include setting a FITWINDOW property which fits the image
to the current scrollwindow and setting a function to display image size
while loading.
**** Most Recent Fixes and Enhancements: *****
Version 2.01c 3/2/96
Range Check errors under certain operations
Read Multipage TIFF restored (inadverdently disabled)
Multi.TIF example image included
Save Cropped Area to Disk (Registered version)
Registered Versions can save images in the various supported formats
and allow setting of the DLL window title bar text. At the moment there is
a problem with certain color formats and palettes (esp GIF nad JPEG) with
respect to scaling and saving. Remember, this is basically a black and white
document imaging tool. Color Images will display properly if they are the first image
to load, otherwise some of them may use palettes from previous images. Registered users
will get free updates regarding any changes in this area.
Unregistered Versions cannot print cropped areas, Save files, or change magnify
parameters.
You are NOT permitted to use this product for any commercial use without
registration. All Copyrights remain with the author, and especially since
this product is offered to professional developers, the author assumes no
responsibility for fitness of use and/or functioning of specific features.
Try it to see if it does what you want: if so, register, if not, stop using it...
Upcoming in future releases (free for registered users for six months):
Allow setting new tag values in TIFF files.
Read FAX formats such as WinFax Pro and BitFax.
Image functions such as dithering and smoothing for color images.
Next Component : A Scanner Component to bring in images, both singly
and in production mode (batch scanning using automatic document
feeders on high-performance scanners).
Please Write or E-Mail (compuserve 74020,1513) if you have suggestions
for features or improvements.
For a full copy of TIFFIMG and to be eligible for future upgrades, send
$45 US + $5 shipping to:
Kent Phelps
CommuniConsultants
P.O. 440
Conifer, CO 80433
(303) 838-2089
Installation:
Run SETUP.EXE from program manager. This will install the program in the
directory of your choice. You can decide if you wish to add the DLLs to
the windows directory.
In Delphi, Select from the OPTIONS menu INSTALL new components.
From the Component list, select ADD, then Browse.
Browse the directory in which you placed TIFFIMG files,
and select TIFFIMG.DCU. Ignore the other units.
Press OK, and the component will be added to the "Additional"
page (hopefully) next to the scrollbox. Also install HANDLES.PAS
as a component (see note above);
See the included help file for details of usage, and load and build the demo
program IMGDEMO. To use, press Open File, and select a file format. Sample
files are included. If you load the sample TIFF file, press the Thumb Button
to see the thumbnail PAN window created. Next, rotate the image and see how
the PAN window follows the image. Press the Magnify button on the toolbar to see
how Magnify is implemented. Don't forget the right mouse button when in the image or
when in the magnify window - there is a menu of useful functions.
Remember, there are callable functions which are not properties, so check HELP
for details on things like PrintBitmap and Magnify.
While TIFFIMG reads and writes a number of formats, it really was designed
for document imaging purposes handling black and white images of 200/300 DPI
document size (at least 1696 x 2046), so many of the features are oriented
towards document imaging needs rather than being YetAnotherBitMapViewer.
If you copy the help file to the Delphi\BIN directory and
also rebuild keywords with the included TIFFIMG.KWF, help for all properties
will be available at the press of F1 when a property is selected. The
overview of the Component will be displayed if you press F1 while
in the component.
HOW TO REGISTER THIS COPY OF TIFFIMG:
A printed order form will be generated if you select ORDER from the menu;
fill it out and press PRINT. This will ensure I get a legible copy, and
besides it will do the arithmetic for you!
or, GO SWREG on CompuServe and use code # 9829
TODO :
Resolve Palette mapping when loading GIF & JPEG, then changing image dimensions.
Add Black/white emphasize, Annotation, object layer. Read Fax and CCITT formats.